package com.eu.ebpm.engine.entity.history;

import java.util.Date;

import com.eu.ebpm.engine.entity.BaseEntity;

/**
 * 运行流程执行记录
 * @author 王晓华
 *
 */
public class HisExecution extends BaseEntity {

	private String user;
	
	private String name;
	
	private String desc;
	
	private String businessKey;
	
	private String businessDesc;
	
	private String businessType;
	
	private long deployId;
	
	private Date createTime;
	
	private Date dueTime;
	
	private boolean runStatus;
	
	private long parentId;
	
	private Long rootId;

	public HisExecution() {
	}

	public HisExecution(long id, String user, String name, String desc,
			String businessKey, String businessDesc, String businessType, long deployId, Date createTime, Date dueTime,
			boolean runStatus, Long rootId) {
		this.id = id;
		this.rootId = rootId;
		this.user = user;
		this.name = name;
		this.desc = desc;
		this.businessKey = businessKey;
		this.businessDesc = businessDesc;
		this.businessType = businessType;
		this.deployId = deployId;
		this.createTime = createTime;
		this.dueTime = dueTime;
		this.runStatus = runStatus;
	}
	
	public HisExecution(long id, String name, String desc,
			String businessKey, long deployId, Date createTime, Date dueTime,
			boolean runStatus, long parentId, Long rootId) {
		this.id = id;
		this.name = name;
		this.desc = desc;
		this.businessKey = businessKey;
		this.deployId = deployId;
		this.createTime = createTime;
		this.dueTime = dueTime;
		this.runStatus = runStatus;
		this.parentId = parentId;
		this.rootId = rootId;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getBusinessDesc() {
		return businessDesc;
	}

	public void setBusinessDesc(String businessDesc) {
		this.businessDesc = businessDesc;
	}

	public String getBusinessType() {
		return businessType;
	}

	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}

	public boolean isRunStatus() {
		return runStatus;
	}

	public void setRunStatus(boolean runStatus) {
		this.runStatus = runStatus;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getBusinessKey() {
		return businessKey;
	}

	public void setBusinessKey(String businessKey) {
		this.businessKey = businessKey;
	}

	public long getDeployId() {
		return deployId;
	}

	public void setDeployId(long deployId) {
		this.deployId = deployId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getDueTime() {
		return dueTime;
	}

	public void setDueTime(Date dueTime) {
		this.dueTime = dueTime;
	}

	public long getParentId() {
		return parentId;
	}

	public void setParentId(long parentId) {
		this.parentId = parentId;
	}

	public Long getRootId() {
		return rootId;
	}

	public void setRootId(Long rootId) {
		this.rootId = rootId;
	}

	@Override
	public String toString() {
		return "HisExecution [user=" + user + ", name=" + name + ", desc=" + desc + ", businessKey=" + businessKey + ", businessDesc=" + businessDesc + ", businessType=" + businessType
				+ ", deployId=" + deployId + ", createTime=" + createTime + ", dueTime=" + dueTime + ", runStatus=" + runStatus + ", parentId=" + parentId + ", rootId=" + rootId + "]";
	}
	
}
